import request from '@/utils/request'

const api_name = '/product/brand'

export default {
  getDataList(params) {
    return request({
      url: `${api_name}/page`,
      method: 'get',
      params: params
    })
  },
  getAllBrand() {
    return request({
      url: `${api_name}/all`,
      method: 'get'
    })
  },
  getBrand(id) {
    return request({
      url:'product/brand/info/'+id,
      method: 'get',
    })
  },
  createBrand(data) {
    return request({
      url: 'product/brand/create',
      method: 'post',
      data: data
    })
  },
  updateBrand(data) {
    return request({
      url: 'product/brand/update',
      method: 'post',
      data: data
    })
  },
      
  deleteBrand(data) {
    return request({
      url:'product/brand/delete',
      method: 'post',
      data: data
    })
  }
  
}



